
#include <cstdio>  // 包含 putchar 函数的定义
#include <cstdlib> // 包含对宽字符和字符串字面量的支持
namespace PORTING_SIGNED_CHAR {
	namespace bad {
		static char* s = (char*)"Hello, \xABWorld\xBB!\n";
		int get_next_char() {
			return *s ? *s++ : -1;
		}
		int main() {
			int ch;
			while ((ch = get_next_char()) > 0) {
				putchar(ch);
			}
			return 0;
	}

}
	namespace good {
		typedef unsigned char UCHAR;
		static UCHAR* s = (unsigned char*)"Hello, \xABWorld\xBB!\n";

		int get_next_char() {
			return *s ? *s++ : -1;
		}
		int main() {
			int ch;
			while ((ch = get_next_char()) > 0) {
				putchar(ch);
			}
			return 0;
		}
	}


}